//
//  main.m
//  Property修饰符
//
//  Created by wenjim on 17/9/17.
//  Copyright © 2017年 WenJim. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Person.h"

int main(int argc, const char * argv[]) {
    
    Person * p = [Person new];
//    p.age = 25;
//    p.name = @"CWJ";
//    p.height = 1.72;
//    p.weight = 73;
    
//    [p setName:"CWJ"];
    
    p.height = 173.0;
    NSLog(@"height = %f", [p abc]);
    
    [p tiZong:100.0];
    NSLog(@"weight = %f",[p weight]);
    
    [p setMarried:YES];
    
    /*
    if ([p married]) {
        NSLog(@"已婚");
    }else{
        NSLog(@"未婚");
    }
     */
    
    if ([p isMarried]) {
        NSLog(@"已婚");
    }else{
        NSLog(@"未婚");
    }
    
    
    return 0;
}
